<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>demo</title>
  </head>
  <body>
    <div id="app">
      <app-head></app-head>
      <app-middle></app-middle>
      <app-foot></app-foot>
    </div>
  </body>
  <!-- 因为组件的用vue语法写的，vue框架必须在组件之前引入 -->
  <script src="../node_modules/vue/dist/vue.js"></script>
  <script src="./components/header.js"></script>
  <script src="./components/middle.js"></script>
  <script src="./components/footer.js"></script>
  <script>
    new Vue({
      el: "#app",
      data: {},
      //局部组件注册
      components: {
        // "addHead":addHead
        appHead,
        appMiddle,
        appFoot,
      },
    });
  </script>
</html>
